<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
    <%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:if test="${!empty param.orderProdId}">
<c-rt:set var="params" value="${pu:addToList('paras', pu:toLong(param.orderProdId))}"/>
<c-rt:set var="hql">
from ServiceOrderProduct where orderProdId=?
</c-rt:set>
<c-rt:set var="serviceOrderProducts" value="${pu:queryByHql(hql, params, null) }"/>
<c-rt:set var="serviceOrder" value="${pu:get('com.yaodian100.ec.order.entity.ServiceOrders', serviceOrderProducts[0].serviceId) }"/>
</c-rt:if>
<c-rt:if test="${empty param.orderProdId}">
<c-rt:set var="serviceOrder" value="${pu:get('com.yaodian100.ec.order.entity.ServiceOrders', question.extraValue['changeId'].value)}"/>
<c-rt:set var="params" value="${pu:addToList('paras', question.extraValue['changeId'].value)}"/>
<c-rt:set var="hql">
from ServiceOrderProduct where serviceId=?
</c-rt:set>
<c-rt:set var="serviceOrderProducts" value="${pu:queryByHql(hql, params, null) }"/>
</c-rt:if>
<div class="content mb-od-dtl" style="width:100%;"> 
        <!-- 我的訂單 --> 
        <h2>换货明细</h2> 
 
       
        
        <!-- 訂單資訊 --> 
        <!-- 換貨資訊 --> 
        
        <div class="d-show"> 
          <p style="margin:0 0 -10px 1.25em;"><strong>換貨商品数量与属性</strong><strong>：</strong></p> 
          <table  width="100%" border="1" cellpadding="0" cellspacing="0" class="tb-1"> 
            <thead> 
              <tr> 
                <th>商品名称</th> 
                <th>换货数量</th> 
                <th>商品欲更换属性</th> 
              </tr> 
            </thead> 
            <tbody> 
              <c-rt:forEach items="${serviceOrderProducts[0].serviceOrderDetail}" var="productDetail">
			<tr>
				<td>
				<p>${productDetail.prodName }<input type="hidden" name="orderDetailId" value="${productDetail.orderDetailId }"/></p>
				</td>
				<td>1</td>
				<td>${productDetail.orgProdSpecName}→${productDetail.prodSpecName }</td>
			</tr>
			
			</c-rt:forEach>
            </tbody> 
          </table> 
          <ul class="li-note"> 
          <li>‧如果成套商品中有部分商品存在质量问题，在办理换货时，亦必须提供成套商品。</li> 
          <li>‧同一商品仅有一次退换货机会，请慎选您所要換货的数量。<span class="txt-gy">（例：同一商品购买5件，退2件后，剩餘3件将无法再申请退、换货。）</span></li> 
        </ul> 
          
          
          <ul> 
            <li class="w-1of1"><strong>换货原因：</strong>${serviceOrder.reason }</li> 
            <li class="w-1of1"><strong>换货问题描述：</strong>${serviceOrder.description }</li> 
            <li class="w-1of1"><strong>配件贈品狀態：</strong>${serviceOrder.accessaryDescription }</li> 
          </ul> 
        </div> 
        <!-- 換貨資訊 --> 
        <!-- 取貨資訊 --> 
        <h3>取货信息</h3> 
        <div class="d-show"> 
          <ul> 
            <li class="w-1of1"><strong>收货人姓名：</strong>${serviceOrder.receiverName }</li> 
            <li class="w-1of2"><strong>手机号码：</strong>${serviceOrder.receiverMobile }</li> 
            <li class="w-1of2"><strong>固定电话：</strong>${serviceOrder.receiverPhoneArea }-${serviceOrder.receiverPhone } 分机：${serviceOrder.receiverExt } </li> 
            <li class="w-1of1"> 
              <div><strong>收货人地址：</strong></div> 
              <div>${serviceOrder.receiverProvince }，${serviceOrder.receiverCity }，${serviceOrder.receiverArea }，${serviceOrder.receiverAddr }，${serviceOrder.receiverZip } </div> 
            </li> 
          </ul> 
        </div> 
        <!-- 取貨資訊 --> 
       
        <!-- 我的訂單 --> 
      </div> 